import request from '@/router/axios';

export const getList = (current, size, params) => {
  return request({
    url: '/api/ManageSenateMeeting/GetDataPage',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}

export const getDetail = (id) => {
  return request({
    url: '/api/school-service/tz/detail',
    method: 'get',
    params: {
      id
    }
  })
}

export const remove = (row) => {
  return request({
    url: '/api/ManageSenateMeeting/DelSenateMeetingRoom',
    method: 'post',
    data:row
  })
}

export const add = (row) => {
  return request({
    url: '/api/ManageSenateMeeting/AddSenateMeeting',
    method: 'post',
    data: row
  })
}

export const update = (row) => {
  return request({
    url: '/api/ManageSenateMeeting/pcAddNotificatiion',
    method: 'post',
    data: row
  })
}
export const jsList = (types,id) => {
    return request({
      url: '/api/ManageParentsMeeting/GetSendObjectByType',
      method: 'get',
      params: {
        types,
        id
      }
    })
  }
  export const  GetFileUploadInfo= (id) => {
    return request({
      url: '/api/ManageSenateMeeting/GetFileUploadInfo',
      method: 'get',
      params: {
        id
      }
    })
  }
